package com.cmes.mes.basic.api.bo;

import com.cmes.core.domain.GenericBO;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;

/**
 * 仓库类型
 *
 * @author Bruce.Gong
 * @since 1.0.0-SNAPSHOT
 */
public interface VendorBO {

    @EqualsAndHashCode(callSuper = true)
    @Data
    class AddBO extends GenericBO {
        @NotNull(message = "上级ID不能为空")
        private Long pid;
        private String name;
        private String phone;
        private String fax;
        private String address;
        private String contact;
        private String email;
        /**
         * 统一社会信用代码
         */
        private String usci;
        /**
         * 开户行
         */
        private String bankName;
        /**
         * 银行账号
         */
        private String bankAccount;
        /**
         * 付款方式
         */
        private Integer payType;
        /**
         * 是否含税
         */
        private Boolean includeTax;
        private String remark;
    }

    @EqualsAndHashCode(callSuper = true)
    @Data
    class UpdateBO extends AddBO {
        @NotNull(message = "ID不能为空")
        private Long id;
    }

}
